package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 物品操作类型 (0: 出库, 1: 入库)
 */
@Getter
public enum ItemOperationType {
    OUT(0, "出库"),
    IN(1, "入库");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    ItemOperationType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
